package com.tpc.yaoxpt.schedule;


import com.tpc.yaoxpt.service.BusinessService;
import javafx.concurrent.ScheduledService;
import javafx.concurrent.Task;

public class BusinessScheduleService extends ScheduledService<Void> {
    @Override
    protected Task<Void> createTask() {
        return new Task<>() {
            BusinessService businessService = new BusinessService();
            @Override
            protected Void call() {
                businessService.getBusinessInfo();
                return null;
            }
        };
    }
}
